package com.njxzc.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.njxzc.common.http.ResponseResult;
import com.njxzc.entity.CartEntity;
import com.njxzc.entity.GoodsEntity;

import java.util.List;
import java.util.Map;

public interface GoodsService extends IService<GoodsEntity> {
    ResponseResult<Map<String, Object>> getGoods(GoodsEntity goodsEntity);

    ResponseResult<List<GoodsEntity>> getAdvGoods();
    ResponseResult<GoodsEntity> getGoodsById(GoodsEntity goodsEntity);

    ResponseResult<List<GoodsEntity>> getGoodsIndex(GoodsEntity goodsEntity);

    ResponseResult<Map<String, String>> addGoods(GoodsEntity goodsEntity);

    ResponseResult<List<GoodsEntity>> deleteGoods(GoodsEntity goodsEntity);
    //Buser 有关的业务处理
    ResponseResult<List<Map<String,Object>>>  myCarGoods(CartEntity cartEntity);

    ResponseResult<Map<String, Object>> iPageMyFocusGoods(GoodsEntity goodsEntity);
}
